package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.workbench.domain.Activity;

import java.util.List;
import java.util.Map;

public interface ActivityService {
    int saveCreateActivity(Activity activity);

    //通过条件分页查询数据
    List<Activity> queryActivityByConditionForPage(Map<String,Object> map);

    //根据条件查询市场活动的总条数
    int queryCountOfActivityByCondition(Map<String,Object> map);

    //根据ids批量删除市场活动
    int deleteActivityByIds(String[] ids);

    //根据id查询市场活动的信息
    Activity queryActivityById(String id);

    //保存修改的市场活动
    int saveEditActivity(Activity activity);

    List<Activity> queryAllActivitys();

    List<Activity> queryActivityByIds(String[] ids);

    int saveCreateActivityByList(List<Activity> activityList);

    Activity queryActivityForDetailById(String id);

    //根据线索的id查询活动的明细信息
    List<Activity> queryActivityForDetailByClueId(String clueId);

    //根据name模糊查询市场活动，并且把已经跟clueId关联过的市场活动排除
    List<Activity> queryActivityForDetailByNameClueId(Map<String,Object> map);

    //根据ids查询市场活动的明细信息
    List<Activity> queryActivityForDetailByIds(String[] ids);

    //根据name模糊查询市场活动，并且查询那些跟clueId关联过的市场活动
    List<Activity> queryActivityForConvertByNameClueId(Map<String,Object> map);

    //根据name模糊查询市场活动
    List<Activity> queryActivityForConvertByName(Map<String,Object> map);
}
